import request from '@/utils/request'

const api_name = '/sx/myTask'

export default {
    // 审核通过的任务列表
    taskList(params) {
        return request({
            url: `${api_name}/list`,
            method: 'get',
            params: params
        })
    },


    // 取消任务
    cannelMyTask(data) {
        return request({
            url: `${api_name}/cannelMyTask`,
            method: 'post',
            data: data
        })
    },

    // 确认任务
    sureMyTask(params) {
        return request({
            url: `${api_name}/sureMyTask`,
            method: 'post',
            params: params
        })
    },


    // 完结任务
    endMyTask(params) {
        return request({
            url: `${api_name}/endMyTask`,
            method: 'post',
            params: params
        })
    },


    // 申诉任务
    appealTask(params) {
        return request({
            url: `${api_name}/appealTask`,
            method: 'post',
            params: params
        })
    },

    // 申诉任务
    recoverTask(params) {
        return request({
            url: `${api_name}/recoverTask`,
            method: 'post',
            params: params
        })
    },

    // 提交素人秀表格
    submitSuRenxiu(data) {
        return request({
            url: `${api_name}/submitSuRenxiu`,
            method: 'post',
            data: data
        })
    },


}
